package com.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

public interface Users {
	public Map<String, Object> query(@Param("account") String account);

	public void add(@Param("account") String account,
			@Param("password") String password,
			@Param("reg_date") String reg_date);

	public Map<String, Object> queryone(@Param("account") String account,
			@Param("password") String password);

	public Map<String, Object> queryUsers(@Param("id") String id);

	public List<Map<String, Object>> queryday(
			@Param("date_time") String date_time);

	public Map<String, Object> queryin(@Param("user_id") String user_id);

	public Map<String, Object> queryout(@Param("user_id") String user_id);

	public List<Map<String, Object>> queryjin(@Param("user_id") String user_id);

	public List<Map<String, Object>> queryjout(@Param("user_id") String user_id);

	public void addin(@Param("id") String id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in, @Param("kind") String kind,
			@Param("remark") String remark);

	public void addout(@Param("id") String id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public Map<String, Object> lastId();

	public List<Map<String, Object>> queryz(@Param("id") String id,
			@Param("user_id") String user_id,
			@Param("date_time") String date_time, @Param("place") String place,
			@Param("money_in") String money_in,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("remark") String remark);

	public List<Map<String, Object>> queryall(@Param("id") String id,
			@Param("user_id") String user_id);

	public void del(@Param("id") String id, @Param("user_id") String userid);

}
